<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>title</title>
    <link rel="stylesheet" href="../assets/agile/css/ratchet/css/ratchet.min.css">
    <link rel="stylesheet" href="../assets/agile/css/flat/flat.component.css">
    <link rel="stylesheet" href="../assets/agile/css/flat/iconline.css">
    <link rel="stylesheet" href="../assets/app/css/app.css" />
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/local.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<style>
.listitem li{background:#F9F9F9;padding:0 12px;}
.listitem li .text i{vertical-align: middle;}
.listitem li a{padding:12px 0;display: block;}
</style>
</head>
<body>
<!--通用顶部-->
<div id="ios-top-box">
    <div id="header" class="bar bar-nav">
    <div class="titlebar">
    <a href="javascript:appClose('agentcashoutrecord',api);"><i class="iconfont iconline-arrow-left"></i></a>
    <h1 class="title">提现记录</h1>
    </div>
    </div>
</div>
<!--通用顶部结束-->
										
<div id="wrapper" style="position:static !important;margin-top:64px;">
	<div class="scroller">
			<ul class="listitem user-listitem-line">
				<p align="center">加载中</p>
			</ul>
	</div>
</div>
<script type="text/javascript">
apiready = function(){
$(function(){
	if(getUserinfo()){
		api.showProgress({title:'加载中',text:''});
		var userinfo = getUserinfo();
		GetJPData(config.url+'/app.php?act=agentcashoutrecord&uid='+userinfo.uid,{},function(data){
			api.hideProgress();
			if(data['status'] == 1){
				if(data['list'] == 0){
					$('.user-listitem-line p').text('暂无数据');
				}else{
					var html = '';
					for(var i in data['data']){
						html += '<li><a href="javascript:openItem(\'agentcashoutdetail\','+data['data'][i]['id']+',function(id){localData.set(\'aoid\',id);});">';
						html += '<i class="ricon iconfont iconline-arrow-right"></i>';
						html += '<div class="text">'+data['data'][i]['time'];
						html += '<span>金额：<span class="cash-out-font">'+data['data'][i]['money']+'</span> 元</span>';
						html += '<span class="cashout-detail">详情</span></div>';
						html += '</a></li>';
					}
					$('.user-listitem-line').html(html);
				}
			}
		});
	}else{
		$.PageDialog.fail('请登录用户');
	}
});
}
</script>
</body>
</html>